<template>
<div>
	<h1>编辑用户</h1>
	<p>用户编号:{{$route.params.id}}</p>
	<h2>参数映射的内容</h2>
	<p>id:{{id}}</p>
	<button class="btn btn-primary" @click="goback">返回上一页</button>
</div>
</template>
<script setup>
import {useRouter} from "vue-router"
const props=defineProps(["id"])
const router=useRouter()
const goback=()=>{
	router.back()
}
</script>